import request from '@/utils/request'
let NoticeApi = {
    /*获取公告列表*/
    getNoticeList(data, errorback) {
        return request._get('/shop/setting.Notice/getNoticeList', data, errorback);
    },
    /*获取公告详情*/
    getNoticeInfo(data, errorback) {
        return request._postBody('/shop/setting.Notice/getNoticeById', data, errorback);
    },
    /*删除公告*/
    deleteNotice(data, errorback) {
        return request._postBody('/shop/setting.Notice/deleteNotice', data, errorback);
    },
    /*编辑公告*/
    updateNotice(data, errorback) {
        return request._postBody('/shop/setting.Notice/updateNotice', data, errorback);
    },
    /*添加公告*/
    addNotice(data, errorback) {
        return request._postBody('/shop/setting.Notice/addNotice', data, errorback);
    },
}
export default NoticeApi;